//
//  LXSlideSelectionAndTap.h
//  ibgs_patients
//
//  Created by xiao.zhao@lachesis-mh.com on 15/12/30.
//  Copyright © 2015年 xiao.zhao@lachesis-mh.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LXSlideSelectionAndTap;
@protocol LXSlideSelectionAndTapDelegate <NSObject>

@optional
-(void)slideView:(LXSlideSelectionAndTap *)slideView willShowPageAtIndex:(NSInteger)index;
-(void)slideView:(LXSlideSelectionAndTap *)slideView willLeavePageAtIndex:(NSInteger)index;
@end

@interface LXSlideSelectionAndTap : UIView
{
    
}
@property (nonatomic, strong) UIFont *textFont;

@property (nonatomic, strong) NSArray *viewControllers;
@property (nonatomic, assign) NSUInteger maxEqualCount;     //一行最多有几个等宽的item
@property (nonatomic, assign) CGFloat lineWidth;
@property (nonatomic, strong) UIColor *lineColor;

@property (nonatomic, assign) NSUInteger selectedIndex;
@property (nonatomic, assign) NSInteger lastPageIndex;

@property (nonatomic, assign) id<LXSlideSelectionAndTapDelegate> delegate;

-(void)scrollToIndex:(NSUInteger)index;

-(void)buildUI;

@end
